<template>
  <div id="app">
    <router-view />
    <van-tabbar route v-model="active" active-color="#ee0a24" v-show="$route.meta.isShowTabbar">
      <van-tabbar-item to="/" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item to="/item/catelist" icon="apps-o">分类</van-tabbar-item>
      <van-tabbar-item to="/topic/index" icon="photo-o">值得买</van-tabbar-item>
      <van-tabbar-item to="/cart" icon="cart-o">购物车</van-tabbar-item>
      <van-tabbar-item to="/ucenter" icon="contact">个人</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
export default defineComponent({
  name: 'App'
})
</script>

<script lang="ts" setup>
import { ref } from 'vue';

const active = ref(0);
</script>

<style lang="less">

</style>
